<?php

namespace App\Http\Controllers\Api\V1;

use Illuminate\Http\Request;
use App\Http\Controllers\Api\ApiController;
use JWTAuth;

class PassportController extends ApiController
{
    
    public function redirect()
    {   
    	$query = http_build_query([
	        'client_id' => '3',
	        'redirect_uri' => 'auth/callback',
	        'response_type' => 'code',
	        'scope' => '',
	    ]);
	    return redirect('oauth/authorize?' . $query);
        
    }
}
